﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<script type="text/javascript">

    function openMsgShow() {
        var msg_id = $("#msg_id").val();
        $.ajax({
            type: "POST",
            url: "/Message/MsgShow",
            data: { "msg_id": msg_id },
            datatype: "html",
            success: function(data) {
                alert(data);
                addtab("msg", "查看消息");
                $("#workarea-msg").html(data);
            }
        });
        //hideMsgLittle();
    }

    function hideMsgLittle() {
        $("#msglittle").hide();
    }
</script>

<div id="msglittle">
    <dl class="lightbox">
        <dt><b>新消息：<%=Html.Hidden("msg_id",ViewData["msg_id"]) %></b> </dt>
        <a style="position: absolute; top: 2px; right: 2px;" href="#">
            <img src="../../images/msg_close.png" onclick="hideMsgLittle()" /></a>
        <dd style="width: 280px; height: 84px; overflow: hidden; padding: 7px 10px; word-wrap: break-word;
            word-break: normal; line-height: 22px;">
            <%=ViewData["msg_content"] %>
            <input type="button" onclick="openMsgShow()" value="查看" />
        </dd>
    </dl>
</div>
